package com.hu.pk.patroller.service;

import com.hs.common.api.dto.ResultVo;
import com.hu.pk.patroller.dto.PatrollerrDto;
import com.hu.pk.patroller.entity.Patroller;
import com.baomidou.mybatisplus.extension.service.IService;

import java.text.ParseException;

/**
 * <p>
 * 巡检 服务类
 * </p>
 *
 * @author Hu
 * @since 2022-07-20
 */
public interface IPatrollerService extends IService<Patroller> {

    String login(PatrollerrDto patrollerrDto);

    Long selectRoadIdByPatrollerName(String patrollerName);

    ResultVo selectUnclaimedOrder() throws ParseException;

    ResultVo selectUnclaimedBerthDetail(Long roadId, Long berthId);

    ResultVo bindCarAndBerth(Long roadId,Long berthId,String carLicensePlate,Long patrollerId,String userTel);

    ResultVo departureAndCharges(String carLicensePlate);


    ResultVo findOrderByStatus(Integer orderStatus,Integer allOrders);

    ResultVo findBerthByStatus();



}
